package com.psammead.dms.common.util.lang;

public class StringUtils extends org.apache.commons.lang.StringUtils {

	public static String getStrValue(Long longValue)
	{
		if(longValue == null)
			return null;
		
		try
		{
			return String.valueOf(longValue);
		}
		catch(Exception e)
		{}
		
		return null;
	}
	
	public static Long getLongValue(String strValue)
	{
		if(isEmpty(strValue))
			return null;
		try
		{
		   return Long.valueOf(strValue);
		}
		catch(NumberFormatException e)
		{
		}
		
		return null;
	}
	
}
